package Singletion;

//懒汉型 线程不安全
public class Coin2 {
    private  static  Coin2 instance=null;

    private Coin2()
    {

    }

    public  static Coin2 getInstance()
    {
        if(instance==null)
            instance=new Coin2();
        return instance;

    }
}
